<div class="cartillas view">
<h2><?php  __('Cartilla');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $cartilla['Cartilla']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $cartilla['Cartilla']['nombre']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciclo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($cartilla['Ciclo']['id'], array('controller' => 'ciclos', 'action' => 'view', $cartilla['Ciclo']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $cartilla['Cartilla']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $cartilla['Cartilla']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Cartilla', true), array('action' => 'edit', $cartilla['Cartilla']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Cartilla', true), array('action' => 'delete', $cartilla['Cartilla']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $cartilla['Cartilla']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Cartillas', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cartilla', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ciclos', true), array('controller' => 'ciclos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ciclo', true), array('controller' => 'ciclos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Reportescartillas', true), array('controller' => 'reportescartillas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Reportescartilla', true), array('controller' => 'reportescartillas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sesiones', true), array('controller' => 'sesiones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sesione', true), array('controller' => 'sesiones', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Reportescartillas');?></h3>
	<?php if (!empty($cartilla['Reportescartilla'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Cartilla Id'); ?></th>
		<th><?php __('Participante Id'); ?></th>
		<th><?php __('Sedes Iem Id'); ?></th>
		<th><?php __('Fecha Registro'); ?></th>
		<th><?php __('Ingreso'); ?></th>
		<th><?php __('Retiro'); ?></th>
		<th><?php __('Fecha'); ?></th>
		<th><?php __('Causa'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cartilla['Reportescartilla'] as $reportescartilla):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $reportescartilla['id'];?></td>
			<td><?php echo $reportescartilla['user_id'];?></td>
			<td><?php echo $reportescartilla['cartilla_id'];?></td>
			<td><?php echo $reportescartilla['participante_id'];?></td>
			<td><?php echo $reportescartilla['sedes_iem_id'];?></td>
			<td><?php echo $reportescartilla['fecha_registro'];?></td>
			<td><?php echo $reportescartilla['ingreso'];?></td>
			<td><?php echo $reportescartilla['retiro'];?></td>
			<td><?php echo $reportescartilla['fecha'];?></td>
			<td><?php echo $reportescartilla['causa'];?></td>
			<td><?php echo $reportescartilla['created'];?></td>
			<td><?php echo $reportescartilla['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'reportescartillas', 'action' => 'view', $reportescartilla['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'reportescartillas', 'action' => 'edit', $reportescartilla['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'reportescartillas', 'action' => 'delete', $reportescartilla['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $reportescartilla['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Reportescartilla', true), array('controller' => 'reportescartillas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Sesiones');?></h3>
	<?php if (!empty($cartilla['Sesione'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nombre'); ?></th>
		<th><?php __('Cartilla Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cartilla['Sesione'] as $sesione):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $sesione['id'];?></td>
			<td><?php echo $sesione['nombre'];?></td>
			<td><?php echo $sesione['cartilla_id'];?></td>
			<td><?php echo $sesione['created'];?></td>
			<td><?php echo $sesione['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'sesiones', 'action' => 'view', $sesione['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'sesiones', 'action' => 'edit', $sesione['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'sesiones', 'action' => 'delete', $sesione['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sesione['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sesione', true), array('controller' => 'sesiones', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
